
// 使用vuex
import {createStore} from "vuex"

let store = createStore({
    state:{
            token:localStorage.getItem("token")?localStorage.getItem("token"):null,
            navList:[],
    },
    mutations:{
        setToken(state,token:string){
            state.token = token
        },
    // 设置面包屑导航栏信息
        setNavList(state,list){
            state.navList = list
        }
},
actions:{

},
getters:{

},
modules:{
    
}

})
export default store;





